/**
 */
package fUML.Syntax.Actions.CompleteActions;

import fUML.Syntax.Actions.BasicActions.Action;
import fUML.Syntax.Actions.BasicActions.OutputPin;

import fUML.Syntax.CommonBehaviors.Communications.Trigger;

import java.util.Map;

import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Accept Event Action</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link fUML.Syntax.Actions.CompleteActions.AcceptEventAction#isIsUnmarshall <em>Is Unmarshall</em>}</li>
 *   <li>{@link fUML.Syntax.Actions.CompleteActions.AcceptEventAction#getResult <em>Result</em>}</li>
 *   <li>{@link fUML.Syntax.Actions.CompleteActions.AcceptEventAction#getTrigger <em>Trigger</em>}</li>
 * </ul>
 * </p>
 *
 * @see fUML.Syntax.Actions.CompleteActions.CompleteActionsPackage#getAcceptEventAction()
 * @model
 * @generated
 */
public interface AcceptEventAction extends Action {
	/**
	 * Returns the value of the '<em><b>Is Unmarshall</b></em>' attribute.
	 * The default value is <code>"false"</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * Indicates whether there is a single output pin for the event, or multiple
	 *                   output pins for attributes of the event.
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Is Unmarshall</em>' attribute.
	 * @see #setIsUnmarshall(boolean)
	 * @see fUML.Syntax.Actions.CompleteActions.CompleteActionsPackage#getAcceptEventAction_IsUnmarshall()
	 * @model default="false" required="true" ordered="false"
	 * @generated
	 */
	boolean isIsUnmarshall();

	/**
	 * Sets the value of the '{@link fUML.Syntax.Actions.CompleteActions.AcceptEventAction#isIsUnmarshall <em>Is Unmarshall</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Is Unmarshall</em>' attribute.
	 * @see #isIsUnmarshall()
	 * @generated
	 */
	void setIsUnmarshall(boolean value);

	/**
	 * Returns the value of the '<em><b>Result</b></em>' reference list.
	 * The list contents are of type {@link fUML.Syntax.Actions.BasicActions.OutputPin}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * Pins holding the received event objects or their attributes. Event objects may
	 *                   be copied in transmission, so identity might not be preserved.
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Result</em>' reference list.
	 * @see fUML.Syntax.Actions.CompleteActions.CompleteActionsPackage#getAcceptEventAction_Result()
	 * @model ordered="false"
	 * @generated
	 */
	EList<OutputPin> getResult();

	/**
	 * Returns the value of the '<em><b>Trigger</b></em>' containment reference list.
	 * The list contents are of type {@link fUML.Syntax.CommonBehaviors.Communications.Trigger}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * The type of events accepted by the action, as specified by triggers. For
	 *                   triggers with signal events, a signal of the specified type or any subtype of the
	 *                   specified signal type is accepted.
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Trigger</em>' containment reference list.
	 * @see fUML.Syntax.Actions.CompleteActions.CompleteActionsPackage#getAcceptEventAction_Trigger()
	 * @model containment="true" required="true" ordered="false"
	 * @generated
	 */
	EList<Trigger> getTrigger();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * <HTML><HEAD>
	 *  <META content="MSHTML
	 *                   6.00.6000.16705" name=GENERATOR></HEAD>
	 *                   <BODY>
	 *  <P>The context of the containing
	 *                   activity of the accept event action must be an active class.
	 *                   </P></BODY></HTML>
	 * self.context.oclAsType(Class).isActive
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * <!-- end-model-doc -->
	 * @model
	 * @generated
	 */
	boolean fUML_active_context(DiagnosticChain diagnostics, Map<Object, Object> context);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * <HTML><HEAD>
	 *  <META content="MSHTML
	 *                   6.00.6000.16705" name=GENERATOR></HEAD>
	 *                   <BODY>All triggers must be for signal
	 *                   events.</BODY></HTML>
	 * self.trigger.event->forAll(oclIsKindOf(SignalEvent))
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * <!-- end-model-doc -->
	 * @model
	 * @generated
	 */
	boolean fUML_only_signal_event_triggers(DiagnosticChain diagnostics, Map<Object, Object> context);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * <HTML><HEAD>
	 *  <META content="MSHTML
	 *                   6.00.6000.16705" name=GENERATOR></HEAD>
	 *                   <BODY>The context class must have receptions for all triggering
	 *                   signals.</BODY></HTML>
	 * let cls:Class = self.context.oclAsType(Class) in
	 *  let
	 *                   classes:Bag(Class) =
	 *                   cls.allParents()->select(oclIsKindOf(Class))->collect(oclAsType(Class))->union(cls->asBag())
	 *                   in
	 *                   classes.ownedReception.signal->includesAll(self.trigger.event->collect(oclAsType(SignalEvent)).signal)
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * <!-- end-model-doc -->
	 * @model
	 * @generated
	 */
	boolean fUML_receive_all_triggering_signals(DiagnosticChain diagnostics, Map<Object, Object> context);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model isUnmarshallRequired="true" isUnmarshallOrdered="false"
	 * @generated
	 */
	void fUML_setIsUnmarshall(boolean isUnmarshall);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model triggerRequired="true" triggerOrdered="false"
	 * @generated
	 */
	void addTrigger(Trigger trigger);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model resultRequired="true" resultOrdered="false"
	 * @generated
	 */
	void addResult(OutputPin result);

} // AcceptEventAction
